cmake_minimum_required(VERSION 3.8)
project(turtle_square)
 


if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
    add_compile_options(-finput-charset=UTF-8)
    add_compile_options(-fexec-charset=UTF-8)
endif()


set(CMAKE_CXX_STANDARD 17)
 
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(turtlesim REQUIRED)

add_executable(turtle_square_node src/turtle_square_node.cpp)

ament_target_dependencies(turtle_square_node
  rclcpp
  geometry_msgs
  turtlesim
)

install(TARGETS
  turtle_square_node
  DESTINATION lib/${PROJECT_NAME}
)

ament_package()
